package org.lfh.wintersun.web.secondKill.dao;

import org.lfh.wintersun.web.secondKill.entity.SecondKillOrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * (SecondKillOrder)表数据库访问层
 *
 * @author lfh
 * @since 2025-04-12 22:36:31
 */
@Mapper
public interface SecondKillOrderDao extends BaseMapper<SecondKillOrderEntity> {

    /**
     * 分页查询数据
     *
     * @param page 分页对象
     * @return 分页数据
     */
    IPage<SecondKillOrderEntity> queryAllByLimit(Page<SecondKillOrderEntity> page);

    /**
     * 统计总行数
     *
     * @param secondKillOrderEntity 查询条件
     * @return 总行数
     */
    long count(SecondKillOrderEntity secondKillOrderEntity);
}
